<?php

namespace Sharks\Core\Support\Constaints;

class NotNullRule extends Rule {

    public function __construct($value, $msg) {
        parent::__construct($value, $msg);
    }

    public function validate() {
        return is_null($this->value) ? false : true;
    }
}